package cn.jobstart.spider.pipeline;

import cn.jobstart.enums.HtmlTypeFleEnum;
import cn.jobstart.enums.TalentSubscriptionTaskChannelEnum;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author sunke
 * @version 1.0
 * @Description
 * @date 2023-10-18 15:58
 */
@Slf4j
@Data
public abstract class HtmlPipline extends AbstractPipline {


    public abstract  int getChannelFlag();


    public abstract int getTypeFlag();



    public static HtmlPipline getPipline(int source, int typeFlag){

        if (source == TalentSubscriptionTaskChannelEnum.JOB51.getType().intValue() && typeFlag == HtmlTypeFleEnum.Talent.getType()) {
            HtmlPipline htmlPipline = new TalentJob51HtmplPipline();
            return htmlPipline;
        }


        return null;

    }




}
